package stud.mpgame.flash.net.description;

import stud.mpgame.network.MessageDescription;

import stud.mpgame.flash.net.command.TestCommand;

/**
 * ...
 * @author pavel[f.pavel91@gmail.com]
 */

class TestCommandDescription extends MessageDescription {

	private static var ID:Int = IDescriptionManager.TEST_COMMAND_DESCRIPTION;

    private static var TEST_COMMAND_USER_OBJECT_ID:Int = 1; //TestCommand.hx
	
	private static var instance:TestCommandDescription = null;

    public override function getID():Int {
        return ID;
    }
	
	public function new() {
		super();
		this.registerUserObject(TEST_COMMAND_USER_OBJECT_ID, TestCommand);
	}

    public static function getInstance():TestCommandDescription {
        if(instance == null){
            instance = new TestCommandDescription();
        }
        return instance;
    }
	
}